//
//  ViewController.swift
//  OC中的单例的封装
//
//  Created by apple on 16/5/25.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
 let urlString = "http://www.weather.com.cn/data/sk/101010100.html"
    
 JHNetWorkTools.sharedTool.request(.GET, urlString: urlString, parameters:  nil) { (responseObject, error) in
    //判断是否成功
    if error != nil
         {
            print("请求失败",error)
             return
        }else
            {
             print("请求成功",responseObject)
         }
     }
        
    }


}

